home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / xcmd / xfcnmscl.sit / XFCN miscellany / card_2389.txt < prev    next >
Text File  |  1987-11-22  |  2KB  |  59 lines

  1. -- card: 2389 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2690
  5. -- name: FileStuff
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=141 top=57 right=75 bottom=361
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 8448
  18. -- line height: 16
  19. -- part name: 
  20.  
  21.  
  22. -- part 2 (field)
  23. -- low flags: 01
  24. -- high flags: 0000
  25. -- rect: left=14 top=86 right=313 bottom=494
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 0
  29. -- font id: 3
  30. -- text size: 10
  31. -- style flags: 0
  32. -- line height: 13
  33. -- part name: 
  34.  
  35.  
  36. -- part contents for card part 1
  37. ----- text -----
  38. File Management Commands
  39.  
  40. -- part contents for card part 2
  41. ----- text -----
  42. There are 4 XFCNs in this category:
  43.  
  44.     ΓÇó  RenameFile("OldName","NewName"). This renames a file, keeping it in the same folder (or 
  45.         at the root of the volume). "OldName" is a full pathname, and "NewName" is a replacement 
  46.         for the last component of that path. For instance:
  47.                                    put RenameFile("HD:Telecom:capture","session") into err
  48.         will produce a file called "HD:Telecom:session" if it succeeds. 0 is returned on success, a
  49.         negative number for an Operating System error, and 1 for a parameter error. See the
  50.         OsErr handler in the stack script for a suggestion on how to handle this.
  51.  
  52.     ΓÇó┬áMoveFile("OldName","New folder"). This moves files between folders on the same volume
  53.         (it can't be used to copy files between volumes). "OldName" is a full pathname, and "New
  54.         folder" specifies the destination folder. For instance:
  55.                                    put MoveFile("HD:Telecom:session","HD:Stuff:") into err
  56.         produces a file called "HD:Stuff:session". Note the final colon in the second argument. Values
  57.         returned have the same meaning as in the RenameFile XFCN.
  58.  
  59.